package com.demo2do.fms.appointment.dao;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.demo2do.fms.entity.authority.User;

/**
 *
 * @author Ark
 *
 */
@Dao("hibernate")
public interface UserDao {

    /**
     * @param loginName
     * @return
     */
    @Query("FROM User WHERE loginName = :loginName AND disabled = false AND fmsPlus = true")
    public User get(@Variable("loginName") String loginName);
    
}
